<?php
$config = array (
		'registro' => array (
				array (
						'field' => 'nombre',
						'label' => 'Nombre',
						'rules' => 'trim|required' 
				),
				
				array (
						'field' => 'apellido',
						'label' => 'Apellido',
						'rules' => 'trim|required' 
				),
				array (
						'field' => 'email',
						'label' => 'Email',
						'rules' => 'trim|required|matches[repetir_email]|callback_check_email' 
				),
				array (
						'field' => 'repetir_email',
						'label' => 'Repetir',
						'rules' => 'trim|required' 
				),
				array (
						'field' => 'pass',
						'label' => 'Password',
						'rules' => 'trim|required|matches[pass_repetida]' 
				),
				array (
						'field' => 'pass_repetida',
						'label' => 'Repetir password',
						'rules' => 'trim|required' 
				),
				array (
						'field' => 'username',
						'label' => 'Nombre de usuario',
						'rules' => 'trim|required|callback_check_username' 
				) 
		),
		'login' => array (
				array (
						'field' => 'email',
						'label' => 'Email',
						'rules' => 'trim|required' 
				),
				
				array (
						'field' => 'pass',
						'label' => 'Contraseña',
						'rules' => 'trim|required|callback_validar_login' 
				) 
		) 
);

?>